
 export const param2Obj = url => {
    const search = url.split('?')[1]
    if (!search) {
      return {}
    }
    //  page=1&pageSize=100
    //  {"page":1,"pageSize":100}
    return JSON.parse('{"' + decodeURIComponent(search).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}')
 }